﻿<Window x:Class="TemplateGenerator.Controls.ImportControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Title="Import template"  Height="210" Width="300">
    <Grid>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        
        <TextBlock Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="0" Text="Import new Word template" Margin="0,0,0,5" />
        <TextBlock Grid.Column="0" Grid.Row="1" Text="Name:" />
        <TextBlock Grid.Column="0" Grid.Row="2" Text="File:" />
        <TextBlock Grid.Column="0" Grid.Row="3" Text="Image:" />
        <TextBlock Grid.Column="0" Grid.Row="4" Text="Word Versions:" Margin="0,0,10,0" />
        
        <TextBox Grid.Column="1" Grid.Row="1" Text="" x:Name="txtName" Grid.ColumnSpan="2"/>
        <TextBox Grid.Column="1" Grid.Row="2" Text="" x:Name="txtFile" />
        <TextBox Grid.Column="1" Grid.Row="3" Text="" x:Name="txtImage" />
        
        <Button Grid.Column="2" Grid.Row="2" Content="Browse" x:Name="btnFileBrowse" Click="btnFileBrowse_Click" />
        <Button Grid.Column="2" Grid.Row="3" Content="Browse" x:Name="btnImageBrowse" Click="btnImageBrowse_Click" />
        <Button Grid.Column="1" Grid.Row="5" Content="Submit" x:Name="btnSubmit" Margin="0,10,0,10" Click="btnSubmit_Click" /> 
        
        <StackPanel Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" Orientation="Vertical">
            <CheckBox x:Name="chk2003" Content="Word 2003" />
            <CheckBox x:Name="chk2007" Content="Word 2007" />
            <CheckBox x:Name="chk2010" Content="Word 2010" />
        </StackPanel>
    </Grid>
</Window>
